package com.wy.controller;

import com.wy.service.MqttMessageSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 吴宇~
 * @motto 我亦无他，唯手熟尔。
 * @edition jdk1.8
 * @reflection 0-1 喧闹任其喧闹，自由我自为之，我自风情万种，与世无争。
 * @date 2024/05/20/19:54
 * @target 心若有所向往，何惧道阻且长
 */
@RestController
@RequestMapping("/test")
public class testController {
    @Autowired
    private MqttMessageSender mqttMessageSender;

    @GetMapping("/t1")
    public void test1() {
        mqttMessageSender.send("test/topic", "1234");
    }
}
